package net.zjitc.Utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/16 14:46
 * @description:
 */
public class CommonUtils {
  public static String uuid(){
    return UUID.randomUUID().toString().replace("-","");
  }
  //将日期转为字符串
  public static String dateToString(Date date){
    SimpleDateFormat sf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    return sf.format(date);
  }
}
